import request from '@/utils/request.js'
export const enterpriseList = (params) => {
  return request({
    url: '/enterprise/list',
    params
  })
}
// 企业新增
export const enterpriseAdd = (data) => {
  return request({
    url: '/enterprise/add',
    method: 'post',
    data
  })
}
// 企业编辑
export const enterpriseEdit = (data) => {
  return request({
    url: '/enterprise/edit',
    method: 'post',
    data
  })
}
// 企业删除
export const enterpriseRemove = (data) => {
  return request({
    url: '/enterprise/remove/' + data.id,
    method: 'post',
    data
  })
}
// 企业状态
export const enterpriseStatus = (data) => {
  return request({
    url: '/enterprise/status/' + data.id,
    method: 'post',
    data
  })
}
